// 导入二次封装axios
import koi from "@/utils/axios.ts";

export const listDictType = () => koi.get("/admin/system/dict/listDictType");
export const listPage = (params: any) => koi.get("/admin/system/dict-data/list", params);
export const read = (id: any) => koi.get("/admin/system/dict-data/read", { id });
export const update = (data: any) => koi.post("/admin/system/dict-data/update", data);
export const add = (data: any) => koi.post("/admin/system/dict-data/add", data);
export const remove = (id: any) => koi.post("/admin/system/dict-data/remove", { id });
export const batchDelete = (ids: any) => koi.post("/admin/system/dict-data/batchDelete", ids);
export const changeStatus = (id: any, status: any) => koi.post("/admin/system/dict-data/changeStatus", { id, status });
export const listDataByType = (dictType: any) => koi.get("/admin/system/dict-data/listDataByType", { dictType: dictType });
